how to replace set of characters in string in java